# 设置类的内部属性
# 设置双下划线前缀定义class内部属性

class Student(object):
    def __init__(self, name, score):
        self.__name = name
        self.__score = score
    
    def get_name(self):
        return self.__name
    
    def get_score(self):
        return self.__score
    
    def set_name(self, name):
        self.__name = name
    
    def set_score(self, score):
        self.__score = score

student = Student('baoman', 20)

print(student.get_name())
